<div class="release-form">
          <form class="form-horizontal" role="form" action="{$strUrl}&step={$step}" method="post"  id="pubGoodsForm{$step}" name="pubGoodsForm{$step}">
  			<input type="hidden" name="{$step}" value="{$step}">
  			<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}">

          <div class="form-group">
            <label class="col-sm-3 control-label">作品分类 <span class="text-danger">*</span></label>

              <div class="col-sm-3">
                  <select class="form-control" name="indus_pid" id="indus_pid" onchange="getIndustry(this.value,'indus_id')">
                     <option value="">请选择父行业</option>
                     {loop $arrTopIndustrys $v}
                     	<option value="{$v['indus_id']}" {if $arrPubInfo['indus_pid'] ==$v['indus_id']} selected="selected"{/if}>{$v['indus_name']}</option>
                     {/loop}
                   </select>
              </div>
              <div class="col-sm-3">
                <select class="form-control" name="indus_id" id="indus_id">
                     <option value="">请选择子行业</option>
                     {if $arrPubInfo['indus_id']}
                      {loop $arrAllIndustrys $v}
							<option value="{$v['indus_id']}" {if $arrPubInfo['indus_id'] == $v['indus_id']} selected="selected"{/if}>{$v['indus_name']}</option>
                      {/loop}
                     {/if}
                   </select>
              </div>
              <div class="col-sm-offset-2 col-sm-8">
                   <span class="help-block"></span>
                 </div>

          </div>
		   {if $regionCfg['region_search_shop'] =='1'}
			<div class="form-group">
			<label class="col-sm-3 control-label">
				地区分类
				<span class="text-danger">*</span>
			</label>
			<div class="col-sm-2">
				<select class="form-control" name="province" id="province" onchange="getZone(this.value,'city');">
					<option value="p">选择省份</option> 
					{loop $arrProvinces $k $v}
					<option value="{$v['id']}">{$v['name']}</option>
					{/loop}
				</select>
			</div>
			<div class="col-sm-2">
				<select class="form-control" name="city" id="city" onchange="getZone(this.value,'area');">
					<option value="c">选择城市</option> 
					{loop $arrCities $k $v}
					<option value="{$v['id']}">{$v['name']}</option>
					{/loop}
				</select>
			</div>
			<div class="col-sm-2">
				<select class="form-control" name="area" id="area">
					<option value="a">选择区域</option> 
					{loop $arrAreas $k $v}
					<option value="{$v['id']}">{$v['name']}</option>
					{/loop}
				</select>
			</div>
		</div>
		{/if}
          <!-- 行业分类 end -->

          <div class="form-group">
            <label for="txt_title" class="col-sm-3 control-label">作品名称 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <input type="text" class="form-control" id="txt_title" name="txt_title" placeholder="标题名称" value="{$arrPubInfo['txt_title']}">
            </div>
            <div class="col-sm-3">
              <p class="form-control-static">任务标题最多50字符</p>
            </div>

          </div>
          <!-- 标题名称 end -->
		  <!--{template task/custom}-->
          <div class="form-group">
            <label for="tar_content" class="col-sm-3 control-label">作品描述 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <textarea id="tar_content" name="tar_content"   placeholder="需求描述">{$arrPubInfo['tar_content']}</textarea>
          		 <script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.config.js"></script>
					<!-- 编辑器源码文件 -->
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.all.min.js"></script>
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
					 <!-- 实例化编辑器 -->
				    <script type="text/javascript">
				        var ue = UE.getEditor('tar_content', {
				            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
				        	initialFrameWidth: '100%',
				        	initialFrameHeight: '400'
				        });
				    </script>
			</div>
            <div class="col-sm-3">
              <p class="form-control-static">内容不的少于20字</p>
            </div>

          </div>
          <!-- 需求描述 end -->

          <div class="form-group">
            <label for="upload" class="col-sm-3 control-label">上传图片</label>
            <div class="col-sm-6">
 				  <div id="picker">上传图片</div>
	              <input type="hidden"  name="fileid1" id="fileid1"  class="form-control" value="{if !empty($arrImageLists)}{$arrPubInfo['fileids']}{/if}">
            </div>
            <div class="col-sm-3">
              <p class="form-control-static">最多5张图片，每张图片不得超过{$basic_config['max_size']}M。建议您上传 280px*280px 大小 的图片</p>
			   <span class="btn red hidden" style="color:red;" id="uploadShopImg">请上传作品图片</span>
            </div>
          </div>
          <!-- 上传附件 end -->

          <div class="form-group ">
            <div class="col-sm-offset-3 col-sm-6">
              
              <ul class="affix-list upload-file-list-info" id="edit_fileList_upload">
              {if !empty($arrImageLists)}
	              {loop $arrImageLists $v}
					<li id="edit-{$v['file_id']}" class="affix-list-item">
						<div class="upload-file-info">
							<span class="webuploader-pick-file-close" data-fileid="{$v['file_id']}" data-fileurl="{$v['save_name']}" data-queued-id="edit-{$v['file_id']}"><i class="close"></i></span>
							<span class="fname">{$v['file_name']}</span>
							<span class="fsize">大小:<!--{eval echo kekezu::fsize($v['save_name']);}--></span>
							<div class="clearfix"></div>
						</div>
					</li>
	              {/loop}
              {/if}
              </ul>
			  <ul class="affix-list upload-file-list-info" id="fileList_upload"></ul>
            </div>
          </div>
          <!-- 附件列表 end -->
      <div class="form-group">
            <label for="txt_price" class="col-sm-3 control-label">出售价格 <span class="text-danger">*</span></label>
            <div class="col-sm-3">
              <div class="input-group">
                <span class="input-group-addon">￥</span>
                <input type="text" class="form-control" id="txt_price" name="txt_price" placeholder="出售价格" value="{$arrPubInfo['txt_price']}" onkeyup="clearstr(this);">
              </div>
		        </div>
            <div class="col-sm-3">
				    <select name="unite_price" id="unite_price" class="form-control">
                    {loop $arrPriceUnit $v}<option value="{$v}" {if $arrPubInfo['unite_price']==$v}selected{/if}>/{$v} </option>
                    {/loop}
                </select>
            </div>

       </div>
	    <div class="form-group">
            <label for="submit_method" class="col-sm-3 control-label">交付方式 <span class="text-danger">*</span></label>
            <div class="col-sm-6 form-control-static">
              <input class="border_n" type="radio" id="pay_out" name="submit_method" value="outside" {if $arrPubInfo['submit_method']=='outside' ||!$arrPubInfo['submit_method']}checked{/if}>
                <label for="pay_out">
                    联系客服
                </label>
                <input class="border_n" type="radio" id="pay_down" name="submit_method" value="inside" {if $arrPubInfo['submit_method']=='inside'}checked{/if}>
                <label for="pay_down">
                    直接下载
                </label>
            </div>

       </div>


       <div class="form-group" id="submit_method">
            <label for="upload" class="col-sm-3 control-label">作品源件</label>
            <div class="col-sm-6">
 				  <div id="picker1">上传附件</div>
	              <input type="hidden"  name="file_path_2" id="file_path_2"  class="form-control" value="{if !empty($arrFileLists)}{$arrPubInfo['file_path_2']}{/if}">
            </div>
            <div class="col-sm-3">
              <p class="form-control-static">最多1个附件，不得超过{$basic_config['max_size']}M。</p>
			   <span class="btn red hidden" style="color:red;"  id="uploadShopFile">请上传作品源件</span>
            </div>
          </div>
          <!-- 上传附件 end -->

          <div class="form-group ">
            <div class="col-sm-offset-3 col-sm-6">
              
              <ul class="affix-list upload-file-list-info" id="edit_fileList_file_path_2">
              {if !empty($arrFileLists)}
	              {loop $arrFileLists $v}
					<li id="edit-{$v['file_id']}" class="affix-list-item">
						<div class="upload-file-info">
							<span class="webuploader-pick-file-close" data-fileid="{$v['file_id']}" data-fileurl="{$v['save_name']}" data-queued-id="edit-{$v['file_id']}"><i class="close"></i></span>
							<span class="fname">{$v['file_name']}</span>
							<span class="fsize">大小:<!--{eval echo kekezu::fsize($v['save_name']);}--></span>
							<div class="clearfix"></div>
						</div>
					</li>
	              {/loop}
              {/if}
              </ul>
			  <ul class="affix-list upload-file-list-info" id="fileList_file_path_2"></ul>
            </div>
          </div>
          <!-- 附件列表 end -->

          <div class="form-group">
            <div class="col-sm-offset-3 col-sm-6">
              <button type="submit" class="btn btn-primary" value="下一步" >下一步</button>
            </div>
          </div>
          <!-- form-group end -->

          <div class="form-group">
            <div class="col-sm-offset-3 col-sm-6">
              <div class="checkbox">
              <label>
                <input type="checkbox" checked="checked" value="true" name="agreementchecked" id="agreementchecked"> 同意 <a href="javascript:void(0);" id="viewPubAgreement">《作品出售协议》 </a>
              </label>
            </div>
            </div>
          </div>
          <!-- form-group end -->

        </form>
        <div class="release-agreement hidden">
          <div class="agreement-header">
            <h2 class="agreement-title">《作品出售协议》</h2>
          </div>
          <p>  <!--{tag 作品出售协议}--></p>
        </div>
      </div>
		<link rel="stylesheet" type="text/css" href="static/js/webuploader/webuploader.css">
		<script type="text/javascript" src="static/js/webuploader/webuploader.js?r={RANDOM_PARA}"></script>
		<script type="text/javascript" src="static/js/webuploader/kppw.webuploader.js"></script>
		<script type="text/jscript">
			$(function(){
				var uploadsize = parseInt("{$basic_config['max_size']}");
					uploadsize =  isNaN(uploadsize)? 1 : uploadsize;
				$("#picker").KKUploader(
					{
						accept: {
							extensions 		: 'jpg,jpeg,gif,png,bmp'
						},
						fileNumLimit		: 5,
						separator			: '|',
						fileSingleSizeLimit	: uploadsize*1024*1024,
						fileVal				: 'upload',
						listName			: "fileList_upload",
						hiddenName 			: 'fileid1',
						//hiddenValType       : 2,
						editListName		:'edit_fileList_upload'
					},
					{
						filename 			: 'upload',
						fileType			: 'service'
					}
				);
				
				$("#picker1").KKUploader(
					{
						accept: {
							extensions 		: '{$strExtTypes2}'
						},
						fileNumLimit		: 1,
						separator			: '|',
						fileSingleSizeLimit	: uploadsize*1024*1024,
						fileVal				: 'upload2',
						listName			: "fileList_file_path_2",
						editListName		: 'edit_fileList_upload2',
						hiddenName 			: 'file_path_2',
						hiddenValType 		: '2'
					},
					{
						filename 			: 'upload2',
						fileType			: 'service'
					}
				);
			});
		</script>